<?php defined( 'BASEPATH' ) or die( 'Restricted' );

/*
This code is copyright 2009-2010 by TMLA INC.  ALL RIGHTS RESERVED.
Please view license.txt in /tgsf_core/legal/license.txt or
http://tgWebSolutions.com/opensource/tgsf/license.txt
for complete licensing information.
*/

?>
<rss version="2.0"> 
<channel> 
    <title>progchat.com <?echo ( isset($tag)? $tag . ' ':'' ); ?>link directory</title>
    <link>http://progchat.com/</link>
    <description>New and Updated Links</description>
    <generator>http://code.google.com/p/tgsf/</generator>
<?php foreach( $rows as $row ) : ?>
    <item>
        <guid><?= URL( 'l' )->setVar( 'ink', $row->link_id ); ?></guid>
        <title><?= htmlspecialchars( $row->link_page_title ); ?></title>
        <link><?= URL( 'l' )->setVar( 'ink', $row->link_id ); ?></link>
        <description><![CDATA[<?= htmlspecialchars( $row->link_desc ); ?><br><a href="<?= htmlspecialchars( $row->link_url ); ?>"><?= htmlspecialchars( $row->link_url ); ?></a>]]></description>
        <pubDate><?= date( 'r', strtotime( $row->link_ts ) ); ?></pubDate>
    </item>
<?php endforeach; ?>
</channel> 
</rss>